using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WebForum.App_Data;
using BaseForum.Model;

namespace WebForum
{
    public partial class ViewForum : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                if (Request.QueryString["id"] != null)
                {
                    Forum f = ForumDataSource.Get(Int32.Parse(Request.QueryString["id"].ToString()));
                    LabelForumTitle.Text = "Forum: "+f.Title;
                    LabelForumContent.Text = f.Desc;
                }
            }
        }
    }
}
